<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<%@ taglib prefix ="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<%@ include file="/common/common-css.jsp"%>
		
		<link rel="stylesheet" href="/loan_manager/css/common-loading.css">
		
		<style>
			#jquery-table td {
				cursor: pointer !important
			}
			
			.productthumbnail {
				width: 100px;
				height: 100px;
			}
			
			@media (min-width: 768px) and (max-width: 1200px) {
				.backup-text {
					width: 100px !important;
				}
			}
		</style>
	</head>
	<body  class="no-skin">
		<%@ include file="/common/common-loading.jsp"%>
		<div class="page-content">
			<div class="page-header" style="margin-bottom:0px;padding-bottom:10px;">
				<h1 id="fu_name">
				</h1>
			</div>
			<form id="queryForm" method="post">
				<div class="page-content-area"> 
				<div class="row">
  					<div class="col-sm-12">
						<div class="widget-box" style="border:0px solid #ccc; border-top:none;border-bottom:none;margin-top:15px;">
							<hr style="margin-top:0px;margin-bottom:0x">
							
							<div class=" widget-body">
								<div class="widget-main" >
											
											<div class="form-group col-xs-12 col-sm-4 col-md-3 col-lg-3">
											<label class="col-sm-4 control-label"
												style="text-align: right" for="activity_id">活动id:</label>
											<div class="col-sm-8" style="padding-left: 0;">
												<input type="text" style="padding-left: 0px" name="activity_id" value="${activity_id }"
													id="activity_id" readonly="readonly">
											</div>
										</div>
										
										<div class="form-group col-xs-12 col-sm-4 col-md-3 col-lg-3">
											<label class="col-sm-4 control-label"
												style="text-align: right" for="activity_id">顺序:</label>
											<div class="col-sm-8" style="padding-left: 0;">
												<input type="text" style="padding-left: 0px" name="external_num" value="${external_num}"
													id="external_num">
											</div>
										</div>
										
										<div class="form-group col-xs-12 col-sm-4 col-md-3 col-lg-3">
											<label class="col-sm-4 control-label"
												style="text-align: right" for="activity_id">安卓下载链接:</label>
											<div class="col-sm-8" style="padding-left: 0;">
												<input type="text" style="padding-left: 0px" name="android_url" value="${android_url}"
													id="android_url">
											</div>
										</div>
										
										<div class="form-group col-xs-12 col-sm-4 col-md-3 col-lg-3">
											<label class="col-sm-4 control-label"
												style="text-align: right" for="activity_id">ios下载链接:</label>
											<div class="col-sm-8" style="padding-left: 0;">
												<input type="text" style="padding-left: 0px" name="ios_url" value="${ios_url}"
													id="ios_url">
											</div>
										</div>
										
										<div class="form-group col-xs-12 col-sm-4">
												<label class="col-sm-2 control-label"  style="text-align:right" >操作:</label>
												 <div class="col-sm-4">
													<div class="input-daterange input-group col-sm-6">
														<select name="status" id="status">
															<option value="0">下线</option>
															<option value="1">上线</option>
														</select>
													</div>
												</div>
											</div>
											
		
									</div><!-- /.widget-main -->
								</div><!-- /.widget-body -->
						</div><!-- /.widget-box -->
					</div><!-- /.col-sm-12 -->
					
					<div class="col-md-12 center">
						<div class="clearfix form-actions">
				
							<button class="btn btn-purple  no-border" type="button" name="btn-query" onclick="doSave()" id="btn-query" > 
								<i class="ace-icon fa fa-search icon-on-right bigger-110"></i> 
								修改
							</button> 	
				 		 </div>
		  			 </div>
				
				</div><!-- /.row -->
									 
				<hr style="display:none;" id="delete_hr">
					<div class="row">
					<div class="col-xs-12">
						<table id="jquery-table" class="table table-striped table-bordered table-hover">
						</table>
					</div><!-- /.col -->
				</div><!-- /.row -->
			</div><!-- /.page-content-area -->
			</form>
		</div>
	</body>
</html>

<%@ include file="/common/common-js.jsp" %>
<!-- loading js -->
<script type="text/javascript" src="${ctx}/js/common-loading.js"></script>
<script type="text/javascript" src="${ctx}/js/call_func.js"></script>
<link rel="stylesheet" href="${ctx}/ace/css/just-tip.css"/>
<script src="${ctx}/ace/js/justTools.js"></script>

<!-- inline scripts related to this page -->
<script type="text/javascript">
		
function doSave() {
	var activity_id=$('#activity_id').val();
	var external_num=$('#external_num').val();
	var android_url=$('#android_url').val();
	var ios_url=$('#ios_url').val();
	var status=$('#status').val();
	
	$.ajax({
		   type: "POST",
		   url: ctx +"/externalpage/save.action",
		   data: "activity_id="+activity_id+"&external_num="+external_num+"&status="+status+"&android_url="+android_url+"&ios_url="+ios_url+"",
		   success: function(data){
			   alert(data.result);
		   },
		   dataType:"json"
		});
} 
	
</script>